package com.attms.service;

import com.attms.domain.Absent;
import com.attms.domain.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Team
 * @since 2022-12-18
 */
public interface IEmployeeService extends IService<Employee> {
    // 员工签到
    Boolean signIn(Integer id);

    // 员工签退
    Integer getState(Integer id);

    Boolean signOut(Integer id);

    // 员工申请请假
    Boolean askForLeave(Absent absent);

    // 员工自己的查询剩余假期
    List<Employee> findRestLeave(Integer id);
    List<Absent> getAbsentList(Integer id);

    // 刷新每天的签到状态
    Boolean updateState();

}
